package com.intretech.umsin.pay.vo;

import java.io.Serializable;

/**
 * @version V1.0
 * @ClassName: AlipayVo
 * @Description: 功能描述
 * @author: 李启联
 * @date: 2022-8-12 8:48
 * @Copyright: Copyright (c) 2022
 */
public class AlipayVo implements Serializable {

    private String out_trade_no; // 商户订单号 必填
    private String subject; // 订单名称 必填
    private String total_amount;  // 付款金额 必填
    private String body; // 商品描述 可空
    private String timeout_express = "5m";//该笔订单允许的最晚付款时间，逾期将关闭交易。取值范围：1m～15d。m-分钟，h-小时，d-天，1c-当天（1c-当天的情况下，无论交易何时创建，都在0点关闭）。 该参数数值不接受小数点， 如 1.5h，可转换为 90m。


    public String getOut_trade_no() {
        return out_trade_no;
    }

    public void setOut_trade_no(String out_trade_no) {
        this.out_trade_no = out_trade_no;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getTotal_amount() {
        return total_amount;
    }

    public void setTotal_amount(String total_amount) {
        this.total_amount = total_amount;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public String getTimeout_express() {
        return timeout_express;
    }

    public void setTimeout_express(String timeout_express) {
        this.timeout_express = timeout_express;
    }

    public AlipayVo() {
    }

    public AlipayVo(String out_trade_no, String subject, String total_amount, String body, String timeout_express) {
        this.out_trade_no = out_trade_no;
        this.subject = subject;
        this.total_amount = total_amount;
        this.body = body;
        this.timeout_express = timeout_express;
    }

    @Override
    public String toString() {
        return "{" + "\"out_trade_no\":\""+out_trade_no+"\"," +
                "\"total_amount\":\""+total_amount+"\"," +
                "\"subject\":\""+subject+"\"," +
                "\"body\":\""+body+"\"," +
                "\"timeout_express\":\""+timeout_express+"\"," +
                "\"product_code\":\"FAST_INSTANT_TRADE_PAY\""+ "}";
    }
}